set(CPACK_PACKAGE_NAME "PCL")
set(CPACK_PACKAGE_VENDOR "PointClouds.org")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Point Cloud Library (PCL)")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "PCL 1.6.0")
set(CPACK_RESOURCE_FILE_LICENSE "/home/vca/PCLEXP/srcs-sprint/pcl-trunk/LICENSE.txt")
set(CPACK_RESOURCE_FILE_README "/home/vca/PCLEXP/srcs-sprint/pcl-trunk/AUTHORS.txt")

set(CPACK_COMPONENT_COMMON_DISPLAY_NAME "common")
set(CPACK_COMPONENT_COMMON_DESCRIPTION "Point cloud common library")
set(CPACK_COMPONENT_COMMON_DEPENDS )
set(CPACK_COMPONENT_COMMON_GROUP "PCL")
set(CPACK_COMPONENT_SAMPLE_CONSENSUS_DISPLAY_NAME "sample_consensus")
set(CPACK_COMPONENT_SAMPLE_CONSENSUS_DESCRIPTION "Point cloud sample consensus library")
set(CPACK_COMPONENT_SAMPLE_CONSENSUS_DEPENDS  common)
set(CPACK_COMPONENT_SAMPLE_CONSENSUS_GROUP "PCL")
set(CPACK_COMPONENT_OCTREE_DISPLAY_NAME "octree")
set(CPACK_COMPONENT_OCTREE_DESCRIPTION "Point cloud octree library")
set(CPACK_COMPONENT_OCTREE_DEPENDS  common)
set(CPACK_COMPONENT_OCTREE_GROUP "PCL")
set(CPACK_COMPONENT_KDTREE_DISPLAY_NAME "kdtree")
set(CPACK_COMPONENT_KDTREE_DESCRIPTION "Point cloud kd-tree library")
set(CPACK_COMPONENT_KDTREE_DEPENDS  common)
set(CPACK_COMPONENT_KDTREE_GROUP "PCL")
set(CPACK_COMPONENT_SEARCH_DISPLAY_NAME "search")
set(CPACK_COMPONENT_SEARCH_DESCRIPTION "Point cloud generic search library")
set(CPACK_COMPONENT_SEARCH_DEPENDS  common kdtree octree)
set(CPACK_COMPONENT_SEARCH_GROUP "PCL")
set(CPACK_COMPONENT_FEATURES_DISPLAY_NAME "features")
set(CPACK_COMPONENT_FEATURES_DESCRIPTION "Point cloud features library")
set(CPACK_COMPONENT_FEATURES_DEPENDS  common search kdtree octree)
set(CPACK_COMPONENT_FEATURES_GROUP "PCL")
set(CPACK_COMPONENT_FILTERS_DISPLAY_NAME "filters")
set(CPACK_COMPONENT_FILTERS_DESCRIPTION "Point cloud filters library")
set(CPACK_COMPONENT_FILTERS_DEPENDS  common sample_consensus search kdtree octree)
set(CPACK_COMPONENT_FILTERS_GROUP "PCL")
set(CPACK_COMPONENT_TRACKING_DISPLAY_NAME "tracking")
set(CPACK_COMPONENT_TRACKING_DESCRIPTION "Point cloud tracking library")
set(CPACK_COMPONENT_TRACKING_DEPENDS  common search kdtree filters octree)
set(CPACK_COMPONENT_TRACKING_GROUP "PCL")
set(CPACK_COMPONENT_GEOMETRY_DISPLAY_NAME "geometry")
set(CPACK_COMPONENT_GEOMETRY_DESCRIPTION "Point cloud geometry library")
set(CPACK_COMPONENT_GEOMETRY_DEPENDS  common)
set(CPACK_COMPONENT_GEOMETRY_GROUP "PCL")
set(CPACK_COMPONENT_IO_DISPLAY_NAME "io")
set(CPACK_COMPONENT_IO_DESCRIPTION "Point cloud IO library")
set(CPACK_COMPONENT_IO_DEPENDS  common octree)
set(CPACK_COMPONENT_IO_GROUP "PCL")
set(CPACK_COMPONENT_SEGMENTATION_DISPLAY_NAME "segmentation")
set(CPACK_COMPONENT_SEGMENTATION_DESCRIPTION "Point cloud segmentation library")
set(CPACK_COMPONENT_SEGMENTATION_DEPENDS  common geometry search sample_consensus kdtree octree)
set(CPACK_COMPONENT_SEGMENTATION_GROUP "PCL")
set(CPACK_COMPONENT_SURFACE_DISPLAY_NAME "surface")
set(CPACK_COMPONENT_SURFACE_DESCRIPTION "Point cloud surface library")
set(CPACK_COMPONENT_SURFACE_DEPENDS  common search kdtree octree)
set(CPACK_COMPONENT_SURFACE_GROUP "PCL")
set(CPACK_COMPONENT_REGISTRATION_DISPLAY_NAME "registration")
set(CPACK_COMPONENT_REGISTRATION_DESCRIPTION "Point cloud registration library")
set(CPACK_COMPONENT_REGISTRATION_DEPENDS  common kdtree search sample_consensus features filters)
set(CPACK_COMPONENT_REGISTRATION_GROUP "PCL")
set(CPACK_COMPONENT_VISUALIZATION_DISPLAY_NAME "visualization")
set(CPACK_COMPONENT_VISUALIZATION_DESCRIPTION "Point cloud visualization library")
set(CPACK_COMPONENT_VISUALIZATION_DEPENDS  common io kdtree geometry search)
set(CPACK_COMPONENT_VISUALIZATION_GROUP "PCL")
set(CPACK_COMPONENT_RECOGNITION_DISPLAY_NAME "recognition")
set(CPACK_COMPONENT_RECOGNITION_DESCRIPTION "Point cloud recognition library")
set(CPACK_COMPONENT_RECOGNITION_DEPENDS  common io search kdtree octree features filters registration sample_consensus)
set(CPACK_COMPONENT_RECOGNITION_GROUP "PCL")
set(CPACK_COMPONENT_TOOLS_DISPLAY_NAME "tools")
set(CPACK_COMPONENT_TOOLS_DESCRIPTION "Useful PCL-based command line tools")
set(CPACK_COMPONENT_TOOLS_DEPENDS  common io filters sample_consensus segmentation search kdtree features surface octree registration visualization recognition geometry)
set(CPACK_COMPONENT_TOOLS_GROUP "PCL")
set(CPACK_COMPONENT_CUDA_COMMON_DISPLAY_NAME "cuda_common")
set(CPACK_COMPONENT_CUDA_COMMON_DESCRIPTION "Point cloud CUDA common library")
set(CPACK_COMPONENT_CUDA_COMMON_DEPENDS )
set(CPACK_COMPONENT_CUDA_COMMON_GROUP "PCL")
set(CPACK_COMPONENT_CUDA_SAMPLE_CONSENSUS_DISPLAY_NAME "cuda_sample_consensus")
set(CPACK_COMPONENT_CUDA_SAMPLE_CONSENSUS_DESCRIPTION "Point Cloud CUDA Sample Consensus library")
set(CPACK_COMPONENT_CUDA_SAMPLE_CONSENSUS_DEPENDS  cuda_common io common)
set(CPACK_COMPONENT_CUDA_SAMPLE_CONSENSUS_GROUP "PCL")
set(CPACK_COMPONENT_CUDA_FEATURES_DISPLAY_NAME "cuda_features")
set(CPACK_COMPONENT_CUDA_FEATURES_DESCRIPTION "Point Cloud CUDA Feature Estimation library")
set(CPACK_COMPONENT_CUDA_FEATURES_DEPENDS  cuda_common io common)
set(CPACK_COMPONENT_CUDA_FEATURES_GROUP "PCL")
set(CPACK_COMPONENT_CUDA_IO_DISPLAY_NAME "cuda_io")
set(CPACK_COMPONENT_CUDA_IO_DESCRIPTION "Point cloud CUDA IO library")
set(CPACK_COMPONENT_CUDA_IO_DEPENDS  cuda_common io common)
set(CPACK_COMPONENT_CUDA_IO_GROUP "PCL")
set(CPACK_COMPONENT_CUDA_SEGMENTATION_DISPLAY_NAME "cuda_segmentation")
set(CPACK_COMPONENT_CUDA_SEGMENTATION_DESCRIPTION "Point cloud CUDA Segmentation library")
set(CPACK_COMPONENT_CUDA_SEGMENTATION_DEPENDS  cuda_common io common)
set(CPACK_COMPONENT_CUDA_SEGMENTATION_GROUP "PCL")
set(CPACK_COMPONENT_CUDA_APPS_DISPLAY_NAME "cuda_apps")
set(CPACK_COMPONENT_CUDA_APPS_DESCRIPTION "Point cloud library CUDA apps")
set(CPACK_COMPONENT_CUDA_APPS_DEPENDS  cuda_common cuda_io cuda_features cuda_segmentation cuda_sample_consensus common io visualization geometry)
set(CPACK_COMPONENT_CUDA_APPS_GROUP "PCL")
set(CPACK_COMPONENT_KEYPOINTS_DISPLAY_NAME "keypoints")
set(CPACK_COMPONENT_KEYPOINTS_DESCRIPTION "Point cloud keypoints library")
set(CPACK_COMPONENT_KEYPOINTS_DEPENDS  common search kdtree octree features filters)
set(CPACK_COMPONENT_KEYPOINTS_GROUP "PCL")
set(CPACK_COMPONENT_APPS_DISPLAY_NAME "apps")
set(CPACK_COMPONENT_APPS_DESCRIPTION "Application examples/samples that show how PCL works")
set(CPACK_COMPONENT_APPS_DEPENDS  common geometry io filters sample_consensus segmentation visualization kdtree features surface octree registration keypoints tracking search)
set(CPACK_COMPONENT_APPS_GROUP "PCL")
set(CPACK_COMPONENT_GPU_CONTAINERS_DISPLAY_NAME "gpu_containers")
set(CPACK_COMPONENT_GPU_CONTAINERS_DESCRIPTION "Containers with reference counting for GPU memory. This module can be compiled without Cuda Toolkit.")
set(CPACK_COMPONENT_GPU_CONTAINERS_DEPENDS  common)
set(CPACK_COMPONENT_GPU_CONTAINERS_GROUP "PCL")
set(CPACK_COMPONENT_GPU_UTILS_DISPLAY_NAME "gpu_utils")
set(CPACK_COMPONENT_GPU_UTILS_DESCRIPTION "Device layer functions.")
set(CPACK_COMPONENT_GPU_UTILS_DEPENDS  common gpu_containers)
set(CPACK_COMPONENT_GPU_UTILS_GROUP "PCL")
set(CPACK_COMPONENT_GPU_OCTREE_DISPLAY_NAME "gpu_octree")
set(CPACK_COMPONENT_GPU_OCTREE_DESCRIPTION "Octree GPU")
set(CPACK_COMPONENT_GPU_OCTREE_DEPENDS  common gpu_containers gpu_utils)
set(CPACK_COMPONENT_GPU_OCTREE_GROUP "PCL")
set(CPACK_COMPONENT_GPU_FEATURES_DISPLAY_NAME "gpu_features")
set(CPACK_COMPONENT_GPU_FEATURES_DESCRIPTION "Temporary GPU_common module. Weak CUDA dependency: a code that use this module requires CUDA Toolkit installed, but should be compiled without nvcc")
set(CPACK_COMPONENT_GPU_FEATURES_DEPENDS  common gpu_containers gpu_utils gpu_octree geometry)
set(CPACK_COMPONENT_GPU_FEATURES_GROUP "PCL")
set(CPACK_COMPONENT_GPU_KINFU_DISPLAY_NAME "gpu_kinfu")
set(CPACK_COMPONENT_GPU_KINFU_DESCRIPTION "Kinect Fusion implementation")
set(CPACK_COMPONENT_GPU_KINFU_DEPENDS  common visualization io gpu_containers gpu_utils gpu_features geometry search filters octree)
set(CPACK_COMPONENT_GPU_KINFU_GROUP "PCL")
set(CPACK_COMPONENT_GPU_SEGMENTATION_DISPLAY_NAME "gpu_segmentation")
set(CPACK_COMPONENT_GPU_SEGMENTATION_DESCRIPTION "Point cloud GPU segmentation library")
set(CPACK_COMPONENT_GPU_SEGMENTATION_DEPENDS  common gpu_containers gpu_utils gpu_octree)
set(CPACK_COMPONENT_GPU_SEGMENTATION_GROUP "PCL")
set(CPACK_COMPONENT_ML_DISPLAY_NAME "ml")
set(CPACK_COMPONENT_ML_DESCRIPTION "Point cloud machine learning library")
set(CPACK_COMPONENT_ML_DEPENDS  common)
set(CPACK_COMPONENT_ML_GROUP "PCL")

set(CPACK_COMPONENT_PCLCONFIG_GROUP "PCL")

set(CPACK_COMPONENT_PCLCONFIG_DISPLAY_NAME "PCLConfig")

set(CPACK_COMPONENT_PCLCONFIG_DESCRIPTION "Helper cmake configuration scripts used by find_package(PCL)")

set(CPACK_COMPONENTS_ALL common sample_consensus octree kdtree search features filters tracking geometry io segmentation surface registration visualization recognition tools cuda_common cuda_sample_consensus cuda_features cuda_io cuda_segmentation cuda_apps keypoints apps gpu_containers gpu_utils gpu_octree gpu_features gpu_kinfu gpu_segmentation ml pclconfig)


IF ((WIN32 OR UNIX) AND (CPACK_GENERATOR STREQUAL "NSIS"))
    set(CPACK_NSIS_DISPLAY_NAME "PCL-1.6.0")
    set(CPACK_NSIS_MUI_ICON "/home/vca/PCLEXP/srcs-sprint/pcl-trunk/cmake/images/pcl.ico")
    set(CPACK_NSIS_MUI_UNIICON "/home/vca/PCLEXP/srcs-sprint/pcl-trunk/cmake/images/pcl.ico")
    set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.pointclouds.org")
    set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.pointclouds.org")
    set(CPACK_NSIS_MODIFY_PATH ON)
    set(CPACK_PACKAGE_EXECUTABLES )
    set(CPACK_NSIS_MENU_LINKS 
            "share/doc/pcl/tutorials/html/index.html" "Tutorials"
            "share/doc/pcl/tutorials/html/sources" "Tutorials sources"
            "share/doc/pcl/html/pcl-1.6.chm" "Documentation"
            "http://www.pointclouds.org" "PCL Website")
    #set(CPACK_NSIS_MENU_LINKS "share/doc/PCL/user_guide.pdf" "User's guide")
    #set(CPACK_NSIS_MENU_LINKS "share/doc/PCL/developer_guide.pdf" "Developer's guide")
    if(WIN32 AND NOT UNIX)
      # There is a bug in NSI that does not handle full unix paths properly. Make
      # sure there is at least one set of four (4) backlasshes.
      set(CPACK_PACKAGE_ICON "/home/vca/PCLEXP/srcs-sprint/pcl-trunk/cmake/images\\\\pcl_horz_large_pos.bmp")
    else(WIN32 AND NOT UNIX)
      set(CPACK_PACKAGE_ICON "/home/vca/PCLEXP/srcs-sprint/pcl-trunk/cmake/images/pcl_horz_large_pos.bmp")
    endif(WIN32 AND NOT UNIX)
ENDIF ()

IF (UNIX AND ((CPACK_GENERATOR STREQUAL "DEB") OR (CPACK_GENERATOR STREQUAL "RPM")))
    # define stuff for the DEB/RPM packages
    set(CPACK_PACKAGE_CONTACT "pcl-developers@pointclouds.org")
ENDIF ()

IF (UNIX AND (CPACK_GENERATOR STREQUAL "DEB"))
  SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
ENDIF ()

IF (APPLE AND (CPACK_GENERATOR STREQUAL "PackageMaker"))
    # define stuff for the PackageMaker packages
    set(CPACK_OSX_PACKAGE_VERSION 10.5)
    set(CPACK_PACKAGE_CONTACT "pcl-developers@pointclouds.org")
    set(CPACK_SET_DESTDIR ON)
    set(CPACK_PACKAGING_INSTALL_PREFIX /usr/local)
ENDIF ()
